package com.siyu.core.dao;

import java.util.List;

import com.siyu.common.hibernate3.Updater;
import com.siyu.common.page.Pagination;
import com.siyu.tickets.entity.SysUser;

public interface SysUserDao {

	public SysUser getByUsername(String username);

	public List<SysUser> getByEmail(String email);

	public int countByEmail(String email);

	public Pagination getPage(int pageNo, int pageSize);

	public Pagination getPage(String username, String realname, String deptname, Integer typeId, Boolean activation,
			Integer orderBy, int pageNo, int pageSize);

	public SysUser findById(Integer id);

	public SysUser save(SysUser bean);

	public SysUser updateByUpdater(Updater<SysUser> updater);

	public SysUser deleteById(Integer id);
}